package org.jeecg.modules.mall.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: mall_order_goods
 * @Author: jeecg-boot
 * @Date:   2023-05-06
 * @Version: V1.0
 */
@Data
@TableName("mall_order_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mall_order_goods对象", description="mall_order_goods")
public class MallOrderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 关联租户
     */
    @Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private String tenantId;
    /**
     * 关联酒店
     */
    @Excel(name = "关联酒店", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private String hotelId;
    /**
     * 会员卡id
     */
    @Excel(name = "会员卡id", width = 15)
    @ApiModelProperty(value = "会员卡id")
    private String memberId;
    /**
     * 订单号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String code;
    /**
     * 商城用户id
     */
    @Excel(name = "商城用户id", width = 15)
    @ApiModelProperty(value = "商城用户id")
    private String mallUserId;
    /**
     * 客户姓名
     */
    @Excel(name = "客户姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private String contactName;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String mobile;
    /**
     * 房号
     */
    @Excel(name = "房号", width = 15)
    @ApiModelProperty(value = "房号")
    private String roomNo;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
    /**
     * 支付方式 1会员卡 2积分 3微信
     */
    @Excel(name = "支付方式 1会员卡 2积分 3微信", width = 15)
    @ApiModelProperty(value = "支付方式 1会员卡 2积分 3微信")
    private Integer paymentMethod;
    /**
     * 积分支付价格
     */
    @Excel(name = "积分支付价格", width = 15)
    @ApiModelProperty(value = "积分支付价格")
    private BigDecimal integralPayMoney;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal money;
    /**
     * 付款状态 0未付款 1已付款
     */
    @Excel(name = "付款状态 0未付款 1已付款", width = 15)
    @ApiModelProperty(value = "付款状态 0未付款 1已付款")
    private Integer payStatus;
    /**
     * 订单状态 1待发货 2待收货 3已完成 4已拒绝 5已取消 6 已完成
     */
    @Excel(name = "订单状态 1待发货 2待收货 3已完成 4已拒绝 5已取消", width = 15)
    @ApiModelProperty(value = "订单状态 1待发货 2待收货 3已完成 4已拒绝 5已取消")
    private Integer status;
    /**
     * 第三方支付单号
     */
    @Excel(name = "第三方支付单号", width = 15)
    @ApiModelProperty(value = "第三方支付单号")
    private String thirdOrderNo;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "订单商品列表")
    @TableField(exist = false)
    private List<MallOrderGoodsDetail> detailList;

    @ApiModelProperty(value = "是否余额支付")
    @TableField(exist = false)
    private Boolean isBalancePay;

    @ApiModelProperty(value = "余额支付密码")
    @TableField(exist = false)
    private String balancePwd;

    @ApiModelProperty(value = "状态描述")
    @TableField(exist = false)
    private String statusName;

    @ApiModelProperty(value = "酒店名称")
    @TableField(exist = false)
    private String hotelName;
}
